package event

import (
	store "inspector/internal/dao"
	"inspector/internal/service"
)

type Controller struct {
	srv *service.EventService
}

func NewEventController(store store.Factory) *Controller {
	eventService := service.NewEventService(store)
	eventService.StartRetryLoop()
	return &Controller{
		srv: eventService,
	}
}
